package encome.work.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import encome.work.dao.Message;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;


@Mapper
@Repository
public interface MessageMapper extends BaseMapper<Message> {
    @Insert("insert into message (`time`, `from`, `to`, content, `type`, `status` ) value (#{time}, #{from}, #{to}, #{content}, #{type}, #{status} )")
    int insert(Message message);
}
